devise email config fix

jamesperet 9 years ago
parent
commit
5d4c3bd0d5
2 changed files with 2 additions and 3 deletions
  1. 1 2
      config/database.yml
  2. 1 1
      config/initializers/devise.rb

+ 1 - 2
config/database.yml

@@ -57,5 +57,4 @@ production:
57 57
   database: rails_website_template_production
58 58
   pool: 5
59 59
   username: rails_website_template
60
-  password:
61
-  schema_search_path: store, public
60
+  password:

+ 1 - 1
config/initializers/devise.rb

@@ -10,7 +10,7 @@ Devise.setup do |config|
10 10
   # Configure the e-mail address which will be shown in Devise::Mailer,
11 11
   # note that it will be overwritten if you use your own mailer class
12 12
   # with default "from" parameter.
13
-  config.mailer_sender = Info.first.server_email != nil ? Info.first.server_email : 'no-reply@website.com'
13
+  config.mailer_sender = ENV['SERVER_EMAIL']
14 14
 
15 15
   # Configure the class responsible to send e-mails.
16 16
   # config.mailer = 'Devise::Mailer'